package com.gxy.learn.design.model.behaviour.template;

import lombok.extern.slf4j.Slf4j;

/**
 * @description: 炒包菜
 * @author: gaoxueyong
 * @Date: 2022/11/8 11:43
 */
@Slf4j
public class ConcreteclassBaoCai extends AbstractClass {
    @Override
    public void pourVegetable() {
        log.info("下锅的蔬菜是包菜");
    }

    /**
     * 钩子函数 检查油品 默认不检查
     *
     * @return boolean
     * @Author gaoxueyong
     * @Date 12:23 下午 2022/11/8
     * @Param []
     **/
    @Override
    public boolean isCheckOil() {
        return true;
    }

    @Override
    public void pourSauce() {
        log.info("下锅的酱料是辣椒");
    }

}
